import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 套餐设置
 */
@Entity('game_package')
export class GamePackageEntity extends BaseEntity {
  // @Index({ unique: true })
  // @Column({ comment: '套餐编号' })
  // packageNo: string;

  // @Column({ comment: '套餐名称', })
  // packageName: string;

  @Column({
    comment: '套餐价格（单位是分）',
    type: 'decimal',
    precision: 10,
    scale: 2,
  })
  packagePrice: number;

  // @Column({ comment: '套餐描述' })
  // packageDesc: string;

  // @Column({ comment: '套餐状态', dict: ['在线', '离线'], default: 0 })
  // packageStatus: number;

  /* 游戏次数 */
  @Column({ comment: '游戏次数', default: 0 })
  gameCount: number;

  // @Column({ comment: '用户ID' })
  // userId: number;
}
